<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
</head>
<body>
	
<script>
function changeImage(){
	var s = document.getElementById('myimage');
	s.src = s.src.match('bulboff')?"/Users/lu/Documents/Code/QA/front-end/images/pic_bulbon.gif":"/Users/lu/Documents/Code/QA/front-end/images/pic_bulboff.gif";
}
</script>
<img id="myimage" onclick="changeImage()" src="/Users/lu/Documents/Code/QA/front-end/images/pic_bulboff.gif" width="100" height="180">
<p>点击灯泡就可以打开或关闭这盏灯</p>
	
</body>
</html>